<?php 
include_once(dirname(__FILE__)."/conn.php"); 
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>后台管理</title>
<link href="base.css" rel="stylesheet" type="text/css">
<style>
	#ldd1 { float:left; position:absolute; left:0px; top:0px; }
	#ldd2 { float:right; }
	#ldd2 dd{ float:right }
	#ldd2 dl{ margin-right:26px }
	#sktop{ text-align:right; margin-right:28px;
  height:22; margin-top:4px; margin-bottom:3px; line-height:22px  }
	.bdd{ float:right; height:26px; padding-left:6px; padding-right:6px;
	     background-image:url(img/tn2.gif); line-height:29px;
	     border-right:1px solid #2C6FA8;border-left:1px solid #efefef }
	.bdd2{ float:right; height:26px; padding-left:6px; padding-right:6px;
	     background-image:url(img/tn22.gif); line-height:29px;
	     border-right:1px solid #2C6FA8;border-left:1px solid #efefef }
	#bdds{ float:right; height:26px; padding-left:3px; padding-right:6px;
	     background-image:url(img/tn2.gif); line-height:29px;
	     border-right:1px solid #2C6FA8; } 
	#bdde{ float:right; height:26px; padding-left:6px; padding-right:3px;
	     background-image:url(img/tn2.gif); line-height:29px;
	     border-left:1px solid #efefef }
	#main{ margin:0px; padding:0px; width:100%; height:60px; background-image:url(img/ntbg2.gif) }
</style>
<script language='javascript'>

function $Nav(){
	if(window.navigator.userAgent.indexOf("MSIE")>=1) return 'IE';
  else if(window.navigator.userAgent.indexOf("Firefox")>=1) return 'FF';
  else return "OT";
}

var preID = 0;

function OpenMenu(cid,lurl,rurl,bid){
   if($Nav()=='IE'){
     if(rurl!='') top.document.frames.main.location = rurl;
     if(cid > -1) top.document.frames.menu.location = 'index_menu.php?c='+cid;
     else if(lurl!='') top.document.frames.menu.location = lurl;
     if(bid>0) document.getElementById("d"+bid).className = 'bdd2';
     if(preID>0 && preID!=bid) document.getElementById("d"+preID).className = 'bdd';
     preID = bid;
   }else{
     if(rurl!='') top.document.getElementById("main").src = rurl;
     if(cid > -1) top.document.getElementById("menu").src = 'index_menu.php?c='+cid;
     else if(lurl!='') top.document.getElementById("menu").src = lurl;
     if(bid>0) document.getElementById("d"+bid).className = 'bdd2';
     if(preID>0 && preID!=bid) document.getElementById("d"+preID).className = 'bdd';
     preID = bid;
   }
}

var preFrameW = '160,*';
var FrameHide = 0;
function ChangeMenu(way){
	var addwidth = 10;
	var fcol = top.document.all.bodyFrame.cols;
	if(way==1) addwidth = 10;
	else if(way==-1) addwidth = -10;
	else if(way==0){
		if(FrameHide == 0){
			preFrameW = top.document.all.bodyFrame.cols;
			top.document.all.bodyFrame.cols = '0,*';
			FrameHide = 1;
			return;
		}else{
			top.document.all.bodyFrame.cols = preFrameW;
			FrameHide = 0;
			return;
		}
	}
	fcols = fcol.split(',');
	fcols[0] = parseInt(fcols[0]) + addwidth;
	top.document.all.bodyFrame.cols = fcols[0]+',*';
}

function resetBT(){
	if(preID>0) document.getElementById("d"+preID).className = 'bdd';
	preID = 0;
}

</script>
</head>
<body bgColor='#ffffff' leftMargin='0' topMargin='0'>
<div id='ldd1'><a href="/" target="_blank"><img src="img/nttitle2.gif" width="177" height="55" border="0" alt="后台管理"></a></div>
<div id='main'>
	<div id='ldd2'>
    <div id='sktop'>
    你好，欢迎登录后台管理系统！&nbsp;&nbsp;&nbsp;&nbsp;<a href="../index.php" target="_blank">进入网站首页</a>&nbsp;&nbsp;&nbsp;&nbsp;
    <a href="javascript:ChangeMenu(-1)">
    	<img src='img/frame-l.gif' border='0' alt="减小左框架">
    </a>
    <a href="javascript:ChangeMenu(0)">
    <img src='img/frame_on.gif' border='0' alt="隐藏/显示左框架">
    </a>
    <a href="javascript:ChangeMenu(1)" title="增大左框架">
    	<img src='img/frame-r.gif' border='0' alt="增大左框架">
    </a>
    </div>
    <dl>
      <dd><img src='img/ttn3.gif' width='7' height='26'></dd>
      <dd id='bdde'><a href='exit.php' target='_parent'>『注销』</a></dd>
      <!-- <dd class='bdd' id='d6'><a href="javascript:OpenMenu(6,'','admin_list.php',6)">管理员账号管理</a></dd>
      <dd class='bdd' id='d8'><a href="javascript:OpenMenu(8,'','system.php',8)">系统设置</a></dd>
      <dd class='bdd' id='d7'><a href="javascript:OpenMenu(7,'','ad_list.php',7)">广告位管理</a></dd>
      <dd class='bdd' id='d5'><a href="javascript:OpenMenu(5,'','note_list.php',5)">填字交流</a></dd>
	  <dd class='bdd' id='d4'><a href="javascript:OpenMenu(4,'','news_list.php',4)">站内新闻</a></dd> -->
	  <dd class='bdd' id='d3'><a href="javascript:OpenMenu(3,'','user_list.php',3)">用户管理</a></dd>
	  <!-- <dd class='bdd' id='d2'><a href="javascript:OpenMenu(2,'','game_list.php',2)">游戏管理</a></dd> -->
      <dd class='bdd' id='d0'><a href="javascript:OpenMenu(5,'','index_body.php',0)">管理主页</a></dd>
      <dd><img src='img/ttn1.gif' width='20' height='26'></dd>
    </dl>
  </div>
</div>
</div>
</body>
</html>